package code.c07;

import code.c06.Pencil;

/**
 * @author thinkpad - 83start
 * @version v1.0
 * @create 2022/10/13 11:03
 * @package code.c07
 * @description 文件说明
 */

public class Exception01 {
    public static void main(String[] args) {
        // 捕获异常
        try {
            int c = 8 / 0;
            System.out.println(c);
        } catch (ArithmeticException e) {
//            System.out.println(e.toString());
            e.printStackTrace();
        } catch (Exception e) {
            e.printStackTrace();
        }finally {
            System.out.println("finally:abc");
        }

        System.out.println("print:abc");
    }
}
